home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / clippings / 930125-02 < prev    next >
Encoding:
Text File  |  1993-02-01  |  7.9 KB  |  160 lines

  1. Newsgroups: comp.mail.misc,sci.crypt,alt.security,comp.security.misc,alt.security.ripem,comp.answers,news.answers
  2. From: Marc VanHeyningen <mvanheyn@whale.cs.indiana.edu>
  3. Subject: RIPEM Frequently Noted Vulnerabilities
  4. Message-ID: <C1F53s.77w@usenet.ucs.indiana.edu>
  5. Organization: Indiana University
  6. Date: Mon, 25 Jan 1993 16:43:03 GMT
  7.  
  8. Archive-name: ripem/attacks
  9. Last-update: Mon, 25 Jan 93 11:00:00 -0500
  10.  
  11. SOME POSSIBLE ATTACKS ON RIPEM
  12.  
  13. This is a living list of potential weaknesses to keep your eyes open
  14. for when using RIPEM for secure electronic mail.  It does not go into
  15. great detail, and is almost certainly not exhaustive.  Obviously, many
  16. of the weaknesses are weaknesses of cryptographically secured mail in
  17. general, and will pertain to secure mail programs other than RIPEM.
  18. It is maintained by Marc VanHeyningen <mvanheyn@whale.cs.indiana.edu>.
  19. It is posted monthly to a variety of news groups; followups pertaining
  20. specifically to RIPEM should go to alt.security.ripem.
  21.  
  22. CRYPTANALYSIS ATTACKS
  23.  
  24. - Breaking RSA would allow an attacker to find out your private key,
  25.   in which case he could read any mail encrypted to you and sign
  26.   messages with your private key.
  27.  
  28.   RSA is generally believed to be resistant to all standard
  29.   cryptanalytic techniques.  Even a standard key (about 516 bits with
  30.   RIPEM) is long enough to render this impractical, barring a
  31.   quite substantial investment in hardware.
  32.  
  33. - Breaking DES would allow an attacker to read any given message,
  34.   since the message itself is encrypted with DES.  It would not allow
  35.   an attacker to claim to be you.
  36.  
  37.   DES has only 56 bits in its key, and thus could conceivably be
  38.   compromised by brute force with sufficient hardware, but few agencies
  39.   have such money to devote to simply read one message.  Since each
  40.   message has a different DES key, the work for each message would
  41.   remain high.
  42.  
  43. KEY MANAGEMENT ATTACKS
  44.  
  45. - Stealing your private key would allow the same benefits as breaking
  46.   RSA.  To safeguard it, it is encrypted with a DES key which is derived
  47.   from a passphrase you type in.  However, if an attacker can get a copy
  48.   of your private keyfile and your passphrase (by snooping network
  49.   packets, tapping lines, or whatever) he could break the whole scheme.
  50.  
  51.   The main risk is that of transferring either the passphrase or the
  52.   private key file across an untrusted link.  So don't do that.  Run 
  53.   RIPEM on a trusted machine, preferably one sitting right in front of
  54.   you.  Ideally, your own machine in your own home (or maybe office)
  55.   which nobody else has physical access to.
  56.  
  57. - Fooling you into accepting a bogus public key for someone else could 
  58.   allow an opponent to deceive you into sending secret messages to him
  59.   rather than to the real recipient.  If the enemy can fool your
  60.   intended recipient as well, he could re-encrypt the messages with
  61.   the other bogus public key and pass them along.
  62.  
  63.   It is important to get the proper public keys of other people.
  64.   The most common mechanism for this is finger; assuming the opponent
  65.   has not compromised routers or daemons or such, finger can be 
  66.   given a fair amount of trust.  The strongest method of key
  67.   authentication is to exchange keys in person; however, this is
  68.   not always practical.  Having other people "vouch for you" by
  69.   signing a statement containing your key is possible, although 
  70.   RIPEM doesn't have features for doing this as automatically as
  71.   does PGP.
  72.  
  73. PLAYBACK ATTACKS
  74.  
  75. - Even if an opponent cannot break the cryptography, an opponent could
  76.   still cause difficulties.  For example, suppose you send a message
  77.   with MIC-ONLY to Alice which says "OK, let's do that." Your opponent
  78.   intercepts it, and now resends it to Bob, who now has a message which
  79.   is authenticated as from you telling him to do that.  Of course, he
  80.   may interpret it in an entirely different context.  Or your opponent
  81.   could transmit the same message to the same recipient much later,
  82.   figuring it would be seen differently at a later time.  Or the
  83.   opponent could change the Originator-Name: to himself, register 
  84.   your public key as his, and send a message hoping the recipient
  85.   will send him return mail indicating (perhaps even quoting!) the
  86.   unknown message.
  87.  
  88.   To defeat playback attacks, the plaintext of each message should 
  89.   include some indication of the sender and recipient, and a unique
  90.   identifier (typically the date).  A good front-end script for RIPEM
  91.   should do this automatically (IMHO).  As a recipient, you should be
  92.   sure that the Originator-Name: header and the sender indicated within
  93.   the plaintext are the same, that you really are a recipient, and that
  94.   the message is not an old one.  Some this also can and should be
  95.   automated.
  96.  
  97. LOCAL ATTACKS
  98.  
  99. - Clearly, the security of RIPEM cannot be greater than the security of
  100.   the machine where the encryption is performed.  For example, under
  101.   UNIX, a super-user could manage to get at your encrypted mail,
  102.   although it would take some planning and effort to do something like
  103.   replace the RIPEM executable with a Trojan horse or to get a copy of
  104.   the plaintext, depending how it's stored.
  105.  
  106.   In addition, the link between you and the machine running RIPEM is
  107.   an extension of that.  If you decrypt with RIPEM on a remote machine
  108.   which you are connected to via network (or, worse yet, modem), an
  109.   eavesdropper could see the plaintext (and probably also your
  110.   passphrase.)
  111.  
  112.   RIPEM should only be executed on systems you trust, obviously.  In
  113.   the extreme case, RIPEM should only be used on your own machine,
  114.   which you have total control over and which nobody else has access
  115.   to, which has only carefully examined software known to be free of
  116.   viruses, and so on.  However, there's a very real trade-off between
  117.   convenience and security here.
  118.  
  119.   A more moderately cautious user might use RIPEM on a UNIX workstation
  120.   where other people have access (even root access), but increase
  121.   security by keeping private keys and the (statically linked, of
  122.   course) executable on a floppy disk.
  123.  
  124.   Some people will keep RIPEM on a multi-user system, but when dialing
  125.   in over an insecure line, they will download the message to their
  126.   own system and perform the RIPEM decryption there.  However, the
  127.   security provided by such a mechanism is somewhat illusory; since
  128.   you presumably type your cleartext password to log in, you've just
  129.   given away the store, since the attacker can now log in as you and
  130.   install traps in your account to steal your private key next time
  131.   you use it from a less insecure line.  This will likely remain the
  132.   situation as long as most systems use the rather quaint mechanism of
  133.   cleartext password authentication.
  134.  
  135.   I find it nice to put a brief statement of how carefully I manage my
  136.   security arrangement in my .plan next to my public key, so that
  137.   potential correspondents can be aware what level of precautions are
  138.   in place.  Some people use two keys, a short one which is not
  139.   carefully managed for ordinary use and a longer one which is treated
  140.   with greater care for critical correspondence.
  141.  
  142. UNTRUSTED PARTNER ATTACKS
  143.  
  144. - RIPEM's encryption will ensure that only a person with the private key
  145.   corresponding to the public key used to encrypt the data may read the
  146.   traffic.  However, once someone with that key gets the message, she
  147.   may always make whatever kind of transformations she wishes.  There 
  148.   exist no cryptographic barriers to a recipient, say, taking an
  149.   ENCRYPTED message and converting it to a MIC-ONLY message, signed by
  150.   you and readable by anyone, although RIPEM does not provide this
  151.   functionality.  Indeed, the latest PEM draft I have seen specifically
  152.   states that such transformations should be possible to allow
  153.   forwarding functions to work.
  154.  
  155.   Including the recipients in the plaintext, as mentioned above, will
  156.   make it possible for recipients of a redistributed message to be aware
  157.   of its original nature.  Naturally, the security of the cryptography
  158.   can never be greater than the security of the people using it.
  159.  
  160.